Manually check system as root layout for Android 10. Fix #11 #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[Hopefully fixes #11]
Android 10 devices don't set
ro.build.system_root_image
but behave like so.Since we can't reliably check the Android version through
ro.build.version.sdk
until we locate the system partition, then we only can check that the/system/system
directory exists.To avoid easy mistakes, a more specific
/system/system/build.prop
check has been implemented.TEST BUILDS: https://github.com/WeAreFairphone/flashable-zip_microG/releases/tag/2020-04-07
Please, report if these pre-releases work for your Android 10 devices or other previous versions, with or without A/B system-as-root partitions layout. Tested succesfully with a OnePlus 3 @ LOS 17.1 and a Fairphone 2 @ LOS 15.1.